/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(120deg, #a1c4fd, #c2e9fb);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

.form-container {
    width: 100%;
}

/* 标题样式 */
.title {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    position: relative;
}

.title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #4CAF50;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 表单元素样式 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #555;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.input-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    outline: none;
    background-color: #fff;
}

/* 按钮样式 */
.button {
    width: 100%;
    background: #4CAF50;
    border: none;
    padding: 12px;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 10px;
}

.button:hover {
    background: #45a049;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 切换表单链接样式 */
.toggle-form {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.toggle-form a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toggle-form a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* 错误消息样式 */
.error-message {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.hidden {
    display: none;
} 